package com.blog.dao;

import com.blog.model.User;
import com.blog.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends MyMapper <User> {
    User findByName(@Param("username")String username, @Param("password")String password);
    User findByUsername(String username);
    List<User> findAll();
}
